package com.jxdinfo.hussar.example.mes.assess.domain;
import com.jxdinfo.hussar.example.common.core.domain.BaseEntity;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jxdinfo.hussar.example.common.annotation.Excel;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 车间产量记录对象 mes_assess_output_record
 *
 * @author ruoyi
 * @date 2024-04-16
 */
public class MesAssessOutputRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车间能源消耗记录ID */
    private Long id;

    /** 车间能源消耗记录编码 */
    @Excel(name = "车间能源消耗记录编码")
    private String energyRecordCode;

    /** 车间能源消耗记录名称 */
    @Excel(name = "车间能源消耗记录名称")
    private String energyRecordName;

    /** 所属车间ID（对应车间表md_workshop） */
    @Excel(name = "所属车间ID")
    private Long workshopId;

    /** 产量 */
    @Excel(name = "产量")
    private BigDecimal outPut;

    /** 成本类型（0消耗，1产出） */
    @Excel(name = "成本类型（0消耗，1产出）")
    private String inOut;

    /** 所属物料ID（对应料品表md_item） */
    @Excel(name = "所属物料ID")
    private Long itemId;

    /** 料品编码 */
    @Excel(name = "料品编码")
    private String itemCode;

    /** 料品名称 */
    @Excel(name = "料品名称")
    private String itemName;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String specification;

    /** 单位 */
    @Excel(name = "单位")
    private String unitOfMeasure;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operateTime;

    /** 预留字段1 */
    @Excel(name = "预留字段1")
    private String attr1;

    /** 预留字段2 */
    @Excel(name = "预留字段2")
    private String attr2;

    /** 预留字段3 */
    @Excel(name = "预留字段3")
    private Long attr3;

    /** 预留字段4 */
    @Excel(name = "预留字段4")
    private Long attr4;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private String enableFlag;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private String deletedFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setEnergyRecordCode(String energyRecordCode)
    {
        this.energyRecordCode = energyRecordCode;
    }

    public String getEnergyRecordCode()
    {
        return energyRecordCode;
    }
    public void setEnergyRecordName(String energyRecordName)
    {
        this.energyRecordName = energyRecordName;
    }

    public String getEnergyRecordName()
    {
        return energyRecordName;
    }
    public void setWorkshopId(Long workshopId)
    {
        this.workshopId = workshopId;
    }

    public Long getWorkshopId()
    {
        return workshopId;
    }
    public void setOutPut(BigDecimal outPut)
    {
        this.outPut = outPut;
    }

    public BigDecimal getOutPut()
    {
        return outPut;
    }
    public void setInOut(String inOut)
    {
        this.inOut = inOut;
    }

    public String getInOut()
    {
        return inOut;
    }
    public void setItemId(Long itemId)
    {
        this.itemId = itemId;
    }

    public Long getItemId()
    {
        return itemId;
    }
    public void setOperateTime(Date operateTime)
    {
        this.operateTime = operateTime;
    }

    public String getItemCode() {
        return itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public String getUnitOfMeasure() {
        return unitOfMeasure;
    }

    public void setUnitOfMeasure(String unitOfMeasure) {
        this.unitOfMeasure = unitOfMeasure;
    }

    public Date getOperateTime()
    {
        return operateTime;
    }
    public void setAttr1(String attr1)
    {
        this.attr1 = attr1;
    }

    public String getAttr1()
    {
        return attr1;
    }
    public void setAttr2(String attr2)
    {
        this.attr2 = attr2;
    }

    public String getAttr2()
    {
        return attr2;
    }
    public void setAttr3(Long attr3)
    {
        this.attr3 = attr3;
    }

    public Long getAttr3()
    {
        return attr3;
    }
    public void setAttr4(Long attr4)
    {
        this.attr4 = attr4;
    }

    public Long getAttr4()
    {
        return attr4;
    }
    public void setEnableFlag(String enableFlag)
    {
        this.enableFlag = enableFlag;
    }

    public String getEnableFlag()
    {
        return enableFlag;
    }
    public void setDeletedFlag(String deletedFlag)
    {
        this.deletedFlag = deletedFlag;
    }

    public String getDeletedFlag()
    {
        return deletedFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("energyRecordCode", getEnergyRecordCode())
                .append("energyRecordName", getEnergyRecordName())
                .append("workshopId", getWorkshopId())
                .append("outPut", getOutPut())
                .append("inOut", getInOut())
                .append("itemId", getItemId())
                .append("itemCode", getItemCode())
                .append("itemName", getItemName())
                .append("specification", getSpecification())
                .append("unitOfMeasure", getUnitOfMeasure())
                .append("operateTime", getOperateTime())
                .append("remark", getRemark())
                .append("attr1", getAttr1())
                .append("attr2", getAttr2())
                .append("attr3", getAttr3())
                .append("attr4", getAttr4())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("enableFlag", getEnableFlag())
                .append("deletedFlag", getDeletedFlag())
                .toString();
    }
}
